package knapsack;

public class KnapsackProblem {
	
	public final int[] weights;
	public final int[] values;
	public final int totalValue;
	public final int maxWeight;
	
	public KnapsackProblem(int[] weights, int[] values, int maxWeight)
	{
		this.maxWeight = maxWeight;
		this.weights = weights;
		this.values = values;
		int sum = 0;
		for (int i = 0; i < values.length; i++) {
			sum += values[i];
		}
		this.totalValue = sum;
	}

}
